﻿namespace Novel.Server.Response
{

    public class ApiResponse
    {

        public static object EmptyResponse()
        {
            return new 
            {
                Code = 0,
            };
        }

        public static object SuccessResponse(object data)
        {
            return new 
            {
                Code = 0,
                Data = data,
            };
        }

        public static object ErrorResponse(string error, int code)
        {
            return new
            {
                Code = code,
                Error = error,
            };
        }
    }
}
